﻿using NUnit.Framework;

namespace DictionaryExt.Test {

    [TestFixture]
    public class SplitInPairResultEmpty {

        [Test]
        public void OnlyPairSep() {
            Assert.Throws<StringExt.PatternException>(OnlyPairSepException);
        }
        static void OnlyPairSepException() {
            const string s = "=";
            string[] result = StringExt.StringExt.SplitInPair(s,StringExt.StringExt.RemoveSurroundingBlanks.No);
            Assert.IsEmpty(result);
        }
    }
}
